package com.qipa.service.impl;


import com.baomidou.mybatisplus.plugins.Page;
import com.qipa.entity.Game;
import com.qipa.mapper.GameMapper;
import com.qipa.model.GameModel;
import com.qipa.service.IGameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * Game 表数据服务层接口实现类
 *
 */
@Service
public class GameServiceImpl extends BaseServiceImpl<GameMapper, Game> implements IGameService {

	@Autowired
    private GameMapper gameMapper;


    @Override
    public Page<GameModel> getPage(Page<GameModel> page, GameModel params) {
        page.setRecords(gameMapper.getPage(page,params));
        return page;
    }



    @Override
    public List<GameModel> getListJoinGameCompanyJoinIssuingCompany(GameModel params) {
        return gameMapper.getListJoinGameCompanyJoinIssuingCompany(params);
    }



    @Override
    public List<GameModel> getListJoinGameCompanyJoinShared(GameModel gameList) {
        return gameMapper.getListJoinGameCompanyJoinShared(gameList);
    }
}